package com.example.tests;

import org.testng.annotations.Test;
//import org.junit.*;

public class ContactCreationTests extends TestBase {
	@Test
	public void testCreateNewContact() throws Exception {
		app.getNavigationHelper().openMainPage();
		app.getNavigationHelper().getContactCreationPage();
		ContactData contact = new ContactData();
		contact.firstname = "Anna";
		contact.lastname = "Petrova";
		contact.address = "Russia, Moscow";
		contact.address2 = "Russian, Voronej";
		contact.bday = "12";
		contact.bmonth = "March";
		contact.byear = "1988";
		contact.email = "anna@example.com";
		contact.email2 = "anna2@example.com";
		contact.group = "group 1";
		contact.mobile = "12345678";
		contact.home = "21323232";
		contact.work = "43242432";
		contact.phone2 = "2435435643";
		app.getContactHelper().fillContactData(contact);
		app.getContactHelper().submitNewContactCreation();
		app.getNavigationHelper().returnToPageOfAddingNewContact();
	}
}
